package com.chz.SupermarketMS.service;

import com.chz.SupermarketMS.dao.HeadRepository;
import com.chz.SupermarketMS.entities.Head;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HeadService {
    @Autowired
    HeadRepository headRepository;

    public Head findByHeadId(long theId) {
        return headRepository.findByHeadId(theId);
    }

    public void delete(Head theHead) {
        headRepository.delete(theHead);
    }
}
